<template>
    <!-- pages/login/index.wxml -->
	<view class="">
		<view class="head-block" v-if="weixin == 2">
				     <view class="nav-title" :style="'top:10px'"></view>
					 <!-- 返回 -->
					 <view class="icons" @tap="goMy" :style="'top:6px'">
					      <van-icon name="arrow-left" color="#333" size="45rpx" />
					  </view>
		</view>
		<view class="sucess">
		    <view class="sucess-container">
		        <view class="sucess-img">
		            <image src="../../static/assets/img/sucess.png" mode="widthFix"></image>
		        </view>
		        <view class="sucess-text">发布成功</view>
		        <view class="sucess-btn">
		            <van-button type="info" @tap.native="goBack">返回</van-button>
		        </view>
		    </view>
		</view>
	</view>

</template>

<script>
// pages/setParkingsuccess/index.js
export default {
    data() {
        return {
			weixin:uni.getStorageSync('weixin')
		};
    }
    /**
     * 生命周期函数--监听页面加载
     */,
    onLoad: function (options) {},
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {},
    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {},
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {},
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {},
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {},
    /**
     * 页面上拉触底事件的处理函数
     */
    // onShareAppMessage: function() {}
    onReachBottom: function () {},
    /**
     * 用户点击右上角分享
     */ methods: {
		 goMy() {
		      uni.navigateBack({
		          delta: 1
		      });
		  },
        goBack() {
            uni.switchTab({
                url: '../home/index'
            });
        }
    }
};
</script>
<style>
@import './index.css';
</style>
